import requests

# url = 'https://nmtp.youdao.com/api/organize/1514708/image/upload'
# header = {
#     'cookie':'_ga=GA1.2.1763984103.1675085083; _gid=GA1.2.2068323424.1675085083; _gat=1; OUTFOX_SEARCH_USER_ID_NCOO=1108069288.262783; OUTFOX_SEARCH_USER_ID=833532017@175.153.160.162; SESSION=61be3f58-58ea-4047-86a7-874799ef29fb; NTES_SESS=FZsmSMgTSFLF60_YYjTQ95IvhWBwmeRNV6Q1C93QG5gp15ST1ltocJUjxRLHGBZ2mP0xusqmUB9lWwYLqWcj6dSYZ.aEK4UgQixFAAUcMoTC3clGJgpK.IxmE8nqs4DkG2M_.7OvRrRAwHTVxuB6AaYKyOvXz3vT.632xAS3sv4zLrgeaRhSX9j2IVk6MpyrOFPLlkJ.fmaFWaD.iNx7xhTWV; S_INFO=1675085110|0|##|974381044@qq.com; P_INFO=974381044@qq.com|1675085110|0|youdao_jianwai|00&99|sic&1671884782&youdao_jianwai#sic&511300#10#0#0|&0||974381044@qq.com'
# }
# files = {
#     'file': open(r'.\1624958787(1).png', 'rb')
# }
# rep = requests.request(method='post', url=url, headers=header, files=files)
# print(rep.json())

# rep = requests.get(url='https://www.baidu.com')
# print(rep.encoding)
# rep.encoding = 'gbk'
# print(rep.encoding)
# print(rep.text)
# print(rep.cookies)
# print(rep.headers)
# print(rep.status_code)
# print(rep.json())